/*  1:   */ package gcs.com.servlet;
/*  2:   */ 
/*  3:   */ import gcs.com.staticValue.StaticValue;
/*  4:   */ import java.io.IOException;
/*  5:   */ import java.io.PrintWriter;
/*  6:   */ import java.util.ArrayList;
/*  7:   */ import java.util.List;
/*  8:   */ import javax.servlet.ServletException;
/*  9:   */ import javax.servlet.http.HttpServlet;
/* 10:   */ import javax.servlet.http.HttpServletRequest;
/* 11:   */ import javax.servlet.http.HttpServletResponse;
/* 12:   */ 
/* 13:   */ public class ReceiveMsgServlet
/* 14:   */   extends HttpServlet
/* 15:   */ {
/* 16:   */   private static final long serialVersionUID = 1L;
/* 17:   */   
/* 18:   */   public void doGet(HttpServletRequest request, HttpServletResponse response)
/* 19:   */     throws ServletException, IOException
/* 20:   */   {
/* 21:20 */     response.setContentType("text/html");
/* 22:21 */     response.setCharacterEncoding("UTF-8");
/* 23:22 */     PrintWriter out = null;
/* 24:23 */     String returnStr = "";
/* 25:   */     try
/* 26:   */     {
/* 27:25 */       out = response.getWriter();
/* 28:26 */       List<String> tempList = new ArrayList();
/* 29:27 */       tempList.addAll(StaticValue.getReceiveMsgList());
/* 30:28 */       StaticValue.clearMsg();
/* 31:29 */       for (String str : tempList) {
/* 32:30 */         returnStr = returnStr + str;
/* 33:   */       }
/* 34:   */     }
/* 35:   */     catch (Exception e)
/* 36:   */     {
/* 37:34 */       e.printStackTrace();
/* 38:35 */       returnStr = e.getMessage();
/* 39:   */     }
/* 40:   */     finally
/* 41:   */     {
/* 42:37 */       out.write(returnStr);
/* 43:38 */       out.flush();
/* 44:39 */       out.close();
/* 45:   */     }
/* 46:   */   }
/* 47:   */   
/* 48:   */   public void doPost(HttpServletRequest request, HttpServletResponse response)
/* 49:   */     throws ServletException, IOException
/* 50:   */   {
/* 51:45 */     doGet(request, response);
/* 52:   */   }
/* 53:   */ }


/* Location:           C:\Users\zhoubo\Desktop\classes\
 * Qualified Name:     gcs.com.servlet.ReceiveMsgServlet
 * JD-Core Version:    0.7.0.1
 */